[Bug 216224] [regression] `pw usermod $username -m` doesn't work after r286196

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 18 11:24:04 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216224

            Bug ID: 216224
           Summary: [regression] `pw usermod $username -m` doesn't work
                    after r286196
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: regression
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ae at FreeBSD.org
          Keywords: regression

pw usermod -m doesn't work after r286196. Now it requires directory name.

An old FreeBSD 9:
# pw user show btr
btr:*:6666:20::0:0:Andrey Elsukov:/home/btr:/bin/csh
# rm -rf /home/btr
# pw usermod btr -m
# ls -l /home/btr
total 10
-rw-r--r--  1 btr  staff  898 Jan 18 14:02 .cshrc
-rw-r--r--  1 btr  staff  186 Jan 18 14:02 .login
-rw-r--r--  1 btr  staff   91 Jan 18 14:02 .login_conf
-rw-------  1 btr  staff  301 Jan 18 14:02 .mail_aliases
-rw-r--r--  1 btr  staff  267 Jan 18 14:02 .mailrc
-rw-r--r--  1 btr  staff  680 Jan 18 14:02 .profile
-rw-------  1 btr  staff  212 Jan 18 14:02 .rhosts
-rw-r--r--  1 btr  staff  909 Jan 18 14:02 .shrc

Recent FreeBSD 12 (stable/11 too):
# pw user show btr
btr:*:6666:0:russian:0:0:Andrey V. Elsukov:/home/btr:/bin/csh
# rm -rf /home/btr
# pw usermod btr -m
# ls -l /home/btr
ls: /home/btr: No such file or directory
# pw usermod btr -d /home/btr -m
# ls -l /home/btr
ls: /home/btr: No such file or directory
# pw usermod btr -d /home/btr/../btr -m
# pw user show btr
btr:*:6666:0:russian:0:0:Andrey V. Elsukov:/home/btr/../btr:/bin/csh
# ls -l /home/btr
total 10
-rw-r--r--  1 btr  wheel  983 18 янв.  14:22 .cshrc
-rw-r--r--  1 btr  wheel  182 18 янв.  14:22 .login
-rw-r--r--  1 btr  wheel   91 18 янв.  14:22 .login_conf
-rw-------  1 btr  wheel  301 18 янв.  14:22 .mail_aliases
-rw-r--r--  1 btr  wheel  267 18 янв.  14:22 .mailrc
-rw-r--r--  1 btr  wheel  728 18 янв.  14:22 .profile
-rw-------  1 btr  wheel  212 18 янв.  14:22 .rhosts
-rw-r--r--  1 btr  wheel  909 18 янв.  14:22 .shrc

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list