summaryrefslogtreecommitdiff
path: root/user/chntpw/getopt-signed-char-return.patch
diff options
context:
space:
mode:
authorCyberLeo <cyberleo@cyberleo.net>2020-06-12 23:45:55 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2020-06-12 23:45:55 +0000
commit8a9860462fd1ae57861b93426c49df0396145832 (patch)
tree4f18c34d7301a6720010f64e6f772cb50780df86 /user/chntpw/getopt-signed-char-return.patch
parentbe87f4ccc042f1b8a9db033ff5f52692b3138bc2 (diff)
downloadpackages-8a9860462fd1ae57861b93426c49df0396145832.tar.gz
packages-8a9860462fd1ae57861b93426c49df0396145832.tar.bz2
packages-8a9860462fd1ae57861b93426c49df0396145832.tar.xz
packages-8a9860462fd1ae57861b93426c49df0396145832.zip
user/chntpw: new port
Diffstat (limited to 'user/chntpw/getopt-signed-char-return.patch')
-rw-r--r--user/chntpw/getopt-signed-char-return.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/chntpw/getopt-signed-char-return.patch b/user/chntpw/getopt-signed-char-return.patch
new file mode 100644
index 000000000..6dc78c624
--- /dev/null
+++ b/user/chntpw/getopt-signed-char-return.patch
@@ -0,0 +1,37 @@
+diff -ur chntpw-140201.orig/chntpw.c chntpw-140201/chntpw.c
+--- chntpw-140201.orig/chntpw.c 2020-06-08 14:21:55.839494887 +0000
++++ chntpw-140201/chntpw.c 2020-06-08 14:22:29.922115922 +0000
+@@ -1026,7 +1026,8 @@
+ int mode = HMODE_INFO;
+ extern int /* opterr, */ optind;
+ extern char* optarg;
+- char *filename,c;
++ char *filename;
++ signed char c;
+ char *who = "Administrator";
+ char iwho[100];
+ FILE *ch; /* Write out names of touched files to this */
+diff -ur chntpw-140201.orig/sampasswd.c chntpw-140201/sampasswd.c
+--- chntpw-140201.orig/sampasswd.c 2020-06-08 14:21:49.661563576 +0000
++++ chntpw-140201/sampasswd.c 2020-06-08 14:22:21.009215027 +0000
+@@ -140,7 +140,7 @@
+ int first = 0;
+ int ret, wret, il;
+ char *hivename;
+- char c;
++ signed char c;
+ char *usr = NULL;
+
+ char *options = "rlHu:vNEthaf";
+diff -ur chntpw-140201.orig/samusrgrp.c chntpw-140201/samusrgrp.c
+--- chntpw-140201.orig/samusrgrp.c 2020-06-08 14:21:47.330589493 +0000
++++ chntpw-140201/samusrgrp.c 2020-06-08 14:22:19.218234941 +0000
+@@ -176,7 +176,7 @@
+ int human = 0;
+ int ret, wret, il;
+ char *hivename;
+- char c;
++ signed char c;
+ char *usr = NULL;
+ char *grp = NULL;
+