Menu

[r10367]: / branches / 8.0.3 / patches / freebsd-pw.patch  Maximize  Restore  History

Download this file

14 lines (12 with data), 612 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Index: usr.sbin/pw/pw_user.c
===================================================================
--- usr.sbin/pw/pw_user.c (revision 223099)
+++ usr.sbin/pw/pw_user.c (working copy)
@@ -170,7 +170,7 @@ pw_user(struct userconf * cnf, int mode, struct ca
* If we'll need to use it or we're updating it,
* then create the base home directory if necessary
*/
- if (arg != NULL || getarg(args, 'm') != NULL) {
+ if ((arg != NULL || getarg(args, 'm') != NULL) && (getarg(args, 'd') == NULL)) {
int l = strlen(cnf->home);
if (l > 1 && cnf->home[l-1] == '/') /* Shave off any trailing path delimiter */
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.