aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-06-22 15:32:41 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-06-22 15:32:41 +0000
commit655d814d753535f04f42b268b76455a46e98102d (patch)
treeda9ec9f8e8d88c3dd37da027df6c219a5f947b2c /include
parenta0b3705fa12280f29cde2b4c8d272b703735715f (diff)
downloadbusybox-655d814d753535f04f42b268b76455a46e98102d.tar.gz
New applet: patch, applies a unified diff
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 01cfb8629..cfb278123 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -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
diff --git a/include/usage.h b/include/usage.h
index d60a4dc78..701b40daa 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -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 \