Added --version flag to init and updated manual page.

This commit is contained in:
Jesse Smith committed 2018-06-22 17:04:47 -03:00
1 parent 2a61e2b029
commit 4438de4e50
3 files changed
+17

No files matched your search

+6
View File
@@ -3000,6 +3000,12 @@ int main(int argc, char **argv)
else
p = argv[0];
if ( (argc == 2) && (! strcmp(argv[1], "--version") ) )
{
printf("SysV init version: %s\n\n", VERSION);
exit(0);
}
/* Common umask */
umask(umask(077) | 022);