diff options
author | Jay Freeman <saurik@saurik.com> | 2008-09-24 00:53:55 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-09-24 00:53:55 +0000 |
commit | fd350eb73d39cd295e544417c4c1b7c7a8d26627 (patch) | |
tree | 24b7a094683660f9db324988121fea410f7c8e6b /data/system-cmds/chpass.diff | |
parent | 8f0c8cd5bae73e1f7b83a46e74a6bc8b29fed626 (diff) |
Added a bunch more tools and almost got chpass working... stupid libutil.
git-svn-id: http://svn.telesphoreo.org/trunk@485 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/system-cmds/chpass.diff')
-rw-r--r-- | data/system-cmds/chpass.diff | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/data/system-cmds/chpass.diff b/data/system-cmds/chpass.diff new file mode 100644 index 000000000..5f3e0e405 --- /dev/null +++ b/data/system-cmds/chpass.diff @@ -0,0 +1,47 @@ +diff -ru system_cmds-431/chpass.tproj/chpass.c system_cmds-431+iPhone/chpass.tproj/chpass.c +--- system_cmds-431/chpass.tproj/chpass.c 2007-01-17 03:04:42.000000000 +0000 ++++ system_cmds-431+iPhone/chpass.tproj/chpass.c 2008-09-24 00:22:49.000000000 +0000 +@@ -94,7 +94,6 @@ + #endif + + #ifndef OPEN_DIRECTORY +-#include <pw_scan.h> + #include <libutil.h> + #endif + +@@ -312,7 +311,7 @@ + #else + pw = &lpw; + old_pw = NULL; +- if (!__pw_scan(arg, pw, _PWSCAN_WARN|_PWSCAN_MASTER)) ++ if (!__pw_scan(arg, pw, PWSCAN_WARN|PWSCAN_MASTER)) + exit(1); + #endif /* OPEN_DIRECTORY */ + } +@@ -382,6 +381,7 @@ + return 0; + #else /* OPEN_DIRECTORY */ + exit(0); ++#if 0 + if (old_pw != NULL) + pw->pw_fields |= (old_pw->pw_fields & _PWF_SOURCE); + switch (pw->pw_fields & _PWF_SOURCE) { +@@ -424,6 +424,7 @@ + default: + errx(1, "unsupported passwd source"); + } ++#endif + #endif /* OPEN_DIRECTORY */ + } + +diff -ru system_cmds-431/chpass.tproj/edit.c system_cmds-431+iPhone/chpass.tproj/edit.c +--- system_cmds-431/chpass.tproj/edit.c 2006-12-18 02:56:48.000000000 +0000 ++++ system_cmds-431+iPhone/chpass.tproj/edit.c 2008-09-24 00:23:00.000000000 +0000 +@@ -85,7 +85,6 @@ + #include <unistd.h> + + #ifndef OPEN_DIRECTORY +-#include <pw_scan.h> + #include <libutil.h> + #endif + |