diff options
author | Matteo Bernardini | 2021-04-07 19:43:09 +0200 |
---|---|---|
committer | Matteo Bernardini | 2021-04-07 19:43:09 +0200 |
commit | fc3c9447da6cded0b6741cf3e6c2386c16493440 (patch) | |
tree | 4e2d3e3a7ba5c8cb879728d8e965da94d1fd4850 /misc/chntpw/patches/chntpw-110511-reged-no-deref-null.patch | |
parent | a6bf666d73b4dccae0636e4ca04113d5953b956c (diff) | |
download | slackbuilds-current-20210407.1.tar.gz |
20210407.1 global branch merge.current-20210407.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'misc/chntpw/patches/chntpw-110511-reged-no-deref-null.patch')
-rw-r--r-- | misc/chntpw/patches/chntpw-110511-reged-no-deref-null.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/chntpw/patches/chntpw-110511-reged-no-deref-null.patch b/misc/chntpw/patches/chntpw-110511-reged-no-deref-null.patch new file mode 100644 index 0000000000..0193cd4937 --- /dev/null +++ b/misc/chntpw/patches/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))) { |