* [PATCH] mkfs.ubifs: Apply squash-uids to the root node
@ 2017-10-03 8:50 Romain Izard
2017-10-04 8:19 ` David Oberhollenzer
0 siblings, 1 reply; 2+ messages in thread
From: Romain Izard @ 2017-10-03 8:50 UTC (permalink / raw)
To: David Oberhollenzer; +Cc: Artem Bityutskiy, linux-mtd, Romain Izard
The root node of the file system needs to be handled as a special case
when removing the owner information from the input.
Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
---
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
index 9e69a4f..d432dfe 100644
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
@@ -1831,6 +1831,8 @@ static int write_data(void)
if (err)
return sys_err_msg("bad root file-system directory '%s'",
root);
+ if (squash_owner)
+ root_st.st_uid = root_st.st_gid = 0;
} else {
root_st.st_mtime = time(NULL);
root_st.st_atime = root_st.st_ctime = root_st.st_mtime;
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mkfs.ubifs: Apply squash-uids to the root node
2017-10-03 8:50 [PATCH] mkfs.ubifs: Apply squash-uids to the root node Romain Izard
@ 2017-10-04 8:19 ` David Oberhollenzer
0 siblings, 0 replies; 2+ messages in thread
From: David Oberhollenzer @ 2017-10-04 8:19 UTC (permalink / raw)
To: Romain Izard; +Cc: Artem Bityutskiy, linux-mtd
Applied to mtd-utils.git
Thanks,
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-04 8:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03 8:50 [PATCH] mkfs.ubifs: Apply squash-uids to the root node Romain Izard
2017-10-04 8:19 ` David Oberhollenzer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.