summarylogtreecommitdiffstats
path: root/arch-finger.patch
blob: c0652b395174bd7d7e125670cf7ca9e2d0f9982c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff '--color=auto' -rupN adduser-debian-3.137.orig/adduser adduser-debian-3.137/adduser
--- adduser-debian-3.137.orig/adduser	2023-07-02 10:45:48.007039732 +0930
+++ adduser-debian-3.137/adduser	2023-07-02 10:46:01.457448798 +0930
@@ -1296,16 +1296,14 @@ sub ch_comment {
     my $chfn = &which('chfn');
     my $comment = shift;
     if($comment =~ /,/) {
-        my($comment_name,$comment_room,$comment_work,$comment_home,$comment_other)
+        my($comment_name,$comment_room,$comment_work,$comment_home)
           = split(/,/,$comment);
  
-        &systemcall($chfn, '-f', $comment_name, '-r', $comment_room, $new_name);
-        &systemcall($chfn,'-w',$comment_work,$new_name)
+        &systemcall($chfn, '-f', $comment_name, '-o', $comment_room, $new_name);
+        &systemcall($chfn,'-p',$comment_work,$new_name)
           if(defined($comment_work));
         &systemcall($chfn,'-h',$comment_home,$new_name)
           if(defined($comment_home));
-        &systemcall($chfn,'-o',$comment_other,$new_name)
-          if(defined($comment_other));
     } else {
         &systemcall($chfn, '-f', $comment, $new_name);
     }