diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-20 13:54:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-20 13:54:12 +0000 |
commit | 2e4139498d33005f4d9c56db360024b11ae5a42e (patch) | |
tree | ff91b913ad87e3ddc69fd705f31a708ae612c9fe /community/chntpw/chntpw-110511-reged-no-deref-null.patch | |
parent | c2ac0e6df64d71833dfffe422df8113d291a8e13 (diff) | |
download | aports-2e4139498d33005f4d9c56db360024b11ae5a42e.tar.bz2 aports-2e4139498d33005f4d9c56db360024b11ae5a42e.tar.xz |
community/chntpw: remove openssl dep, add patches from fedora
OpenSSL is not used at all so remove the dependency and misleading build
option.
The patches from Fedora seems to be needed so we add those.
Diffstat (limited to 'community/chntpw/chntpw-110511-reged-no-deref-null.patch')
-rw-r--r-- | community/chntpw/chntpw-110511-reged-no-deref-null.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/community/chntpw/chntpw-110511-reged-no-deref-null.patch b/community/chntpw/chntpw-110511-reged-no-deref-null.patch new file mode 100644 index 0000000000..0193cd4937 --- /dev/null +++ b/community/chntpw/chntpw-110511-reged-no-deref-null.patch @@ -0,0 +1,15 @@ +diff -ur chntpw-110511.orig/reged.c chntpw-110511/reged.c +--- chntpw-110511.orig/reged.c 2011-05-11 12:33:56.000000000 -0700 ++++ chntpw-110511/reged.c 2011-11-01 13:46:55.569625286 -0700 +@@ -167,6 +167,11 @@ + + if (edit) { /* Call editor. Rest of arguments are considered hives to load */ + hivename = argv[optind+no_hives]; ++ if (!hivename) { ++ fprintf(stderr,"with -e you must specify at least one hive file name\n"); ++ usage(); ++ exit(1); ++ } + do { + if (!(hive[no_hives] = openHive(hivename, + HMODE_RW|mode))) { |