New applet: patch, applies a unified diff

This commit is contained in:
Glenn L McGrath
2003-06-22 15:32:41 +00:00
parent a0b3705fa1
commit 655d814d75
5 changed files with 307 additions and 0 deletions

View File

@@ -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

View File

@@ -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 \