New applet: patch, applies a unified diff
This commit is contained in:
@@ -421,6 +421,9 @@
|
||||
#ifdef CONFIG_PASSWD
|
||||
APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
|
||||
#endif
|
||||
#ifdef CONFIG_PATCH
|
||||
APPLET(patch, patch_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
#ifdef CONFIG_PIDFILEHACK
|
||||
APPLET(pidfilehack, pidfilehack_main, _BB_DIR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
|
||||
@@ -1696,6 +1696,13 @@
|
||||
"\t-l\tLocks (disables) the specified user account.\n" \
|
||||
"\t-u\tUnlocks (re-enables) the specified user account."
|
||||
|
||||
#define patch_trivial_usage \
|
||||
"[-p<num>]"
|
||||
#define patch_full_usage \
|
||||
"[-p<num>]"
|
||||
#define patch_example_usage \
|
||||
"$ patch -p1 <example.diff"
|
||||
|
||||
#define pidfilehack_trivial_usage \
|
||||
"[daemon.pid] [daemon]"
|
||||
#define pidfilehack_full_usage \
|
||||
|
||||
Reference in New Issue
Block a user