]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Say that UTMP_FILE is the default FILE
authorJim Meyering <jim@meyering.net>
Sat, 21 Dec 1996 04:08:25 +0000 (04:08 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 21 Dec 1996 04:08:25 +0000 (04:08 +0000)
rather than hard-coding /etc/utmp.

src/who-users.c

index 50c0a6bde5db655c95d759ad0152fdfeb425477c..ec00d8c77d4e5599d26cfccee3db3b99b1ac10e8 100644 (file)
@@ -639,9 +639,9 @@ usage (int status)
       --help        display this help and exit\n\
       --version     output version information and exit\n\
 \n\
-If FILE not given, uses /etc/utmp.  /etc/wtmp as FILE is common.\n\
+If FILE is not specified, use %s.  /etc/wtmp as FILE is common.\n\
 If ARG1 ARG2 given, -m presumed: `am i' or `mom likes' are usual.\n\
-"));
+"), UTMP_FILE);
       puts (_("\nReport bugs to sh-utils-bugs@gnu.ai.mit.edu"));
     }
   exit (status);
@@ -660,10 +660,10 @@ usage (int status)
       printf (_("Usage: %s [OPTION]... [ FILE ]\n"), program_name);
       printf (_("\
 Output who is currently logged in according to FILE.\n\
-If FILE not given, uses /etc/utmp.  /etc/wtmp as FILE is common.\n\
+If FILE is not specified, use %s.  /etc/wtmp as FILE is common.\n\
 \n\
       --help        display this help and exit\n\
-      --version     output version information and exit\n"));
+      --version     output version information and exit\n"), UTMP_FILE);
       puts (_("\nReport bugs to sh-utils-bugs@gnu.ai.mit.edu"));
     }
   exit (status);