Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

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  
    88 * for details.
    99 */
    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.o
    15 //kbuild:lib-$(CONFIG_REMOVE_SHELL) += add-remove-shell.o
    16 
    1710//config:config ADD_SHELL
    1811//config:       bool "add-shell"
     
    2619//config:       help
    2720//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
    2827
    2928//usage:#define add_shell_trivial_usage
     
    101100            }
    102101            /* copy shell name from old to new file */
    103             printf("%s\n", line);
     102            puts(line);
    104103 next_line:
    105104            free(line);
     
    113112        while (*cpp) {
    114113            if (*cpp != dont_add)
    115                 printf("%s\n", *cpp);
     114                puts(*cpp);
    116115            cpp++;
    117116        }
Note: See TracChangeset for help on using the changeset viewer.