Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131495925
D52587.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
507 B
Referenced Files
None
Subscribers
None
D52587.diff
View Options
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/pw/pw_user.c
@@ -115,7 +115,11 @@
*tmp = '\0';
if (fstatat(dfd, dirs, &st, 0) == -1) {
if (mkdirat(dfd, dirs, _DEF_DIRMODE) == -1)
- err(EX_OSFILE, "'%s' (home parent) is not a directory", dirs);
+ err(EX_OSFILE,
+ "'%s' (home parent) is not a directory",
+ dirs);
+ if (fchownat(dfd, dirs, 0, 0, 0) != 0)
+ warn("chown(%s)", dirs);
}
*tmp = '/';
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 9, 3:10 PM (15 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22593973
Default Alt Text
D52587.diff (507 B)
Attached To
Mode
D52587: pw: Add a missing chown() when creating dirs in mkdir_home_parents()
Attached
Detach File
Event Timeline
Log In to Comment