Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/loginutils/add-remove-shell.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/loginutils/add-remove-shell.c
r3232 r3621 8 8 * for details. 9 9 */ 10 11 //applet:IF_ADD_SHELL( APPLET_ODDNAME(add-shell , add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, add_shell ))12 //applet:IF_REMOVE_SHELL(APPLET_ODDNAME(remove-shell, add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, remove_shell))13 14 //kbuild:lib-$(CONFIG_ADD_SHELL) += add-remove-shell.o15 //kbuild:lib-$(CONFIG_REMOVE_SHELL) += add-remove-shell.o16 17 10 //config:config ADD_SHELL 18 11 //config: bool "add-shell" … … 26 19 //config: help 27 20 //config: Remove shells from /etc/shells. 21 22 //applet:IF_ADD_SHELL( APPLET_ODDNAME(add-shell , add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, add_shell )) 23 //applet:IF_REMOVE_SHELL(APPLET_ODDNAME(remove-shell, add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, remove_shell)) 24 25 //kbuild:lib-$(CONFIG_ADD_SHELL) += add-remove-shell.o 26 //kbuild:lib-$(CONFIG_REMOVE_SHELL) += add-remove-shell.o 28 27 29 28 //usage:#define add_shell_trivial_usage … … 101 100 } 102 101 /* copy shell name from old to new file */ 103 p rintf("%s\n",line);102 puts(line); 104 103 next_line: 105 104 free(line); … … 113 112 while (*cpp) { 114 113 if (*cpp != dont_add) 115 p rintf("%s\n",*cpp);114 puts(*cpp); 116 115 cpp++; 117 116 }
Note:
See TracChangeset
for help on using the changeset viewer.