summaryrefslogtreecommitdiff
path: root/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2014-08-22 18:49:01 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-12-09 16:03:23 -0800
commit0637b185cc2aadc52d80005eee5406e1d197fbe4 (patch)
tree893fe407d0f3a454a909725e132fa05cff4c2b35 /ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
parent772469f83a54e4bc077880212e37b0e7b9ba85ac (diff)
mkfs.ubifs: use gid from table instead 2x uid
If the devtable is used then the tool uses uid twice and doesn't consider gid at all. This changes it to use gid & uid. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'ubifs-utils/mkfs.ubifs/mkfs.ubifs.c')
-rw-r--r--ubifs-utils/mkfs.ubifs/mkfs.ubifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
index 90e727c..27f8d0a 100644
--- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
+++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c
@@ -1742,7 +1742,7 @@ static int add_directory(const char *dir_name, ino_t dir_inum, struct stat *st,
memcpy(&fake_st, &root_st, sizeof(struct stat));
fake_st.st_uid = nh_elt->uid;
- fake_st.st_uid = nh_elt->uid;
+ fake_st.st_gid = nh_elt->gid;
fake_st.st_mode = nh_elt->mode;
fake_st.st_rdev = nh_elt->dev;
fake_st.st_nlink = 1;