diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2020-06-12 23:45:55 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-06-12 23:45:55 +0000 |
commit | f25c632def0d17fad7a07d5bebdbb242c5785465 (patch) | |
tree | d0cb201ef45a8f8c68e47c5485de82d7d0070ddf /user/chntpw/chntpw-110511-reged-no-deref-null.patch | |
parent | 3d6323a05f1465d6845e258d7c4efa841d0b42e7 (diff) | |
parent | 8a9860462fd1ae57861b93426c49df0396145832 (diff) | |
download | packages-f25c632def0d17fad7a07d5bebdbb242c5785465.tar.gz packages-f25c632def0d17fad7a07d5bebdbb242c5785465.tar.bz2 packages-f25c632def0d17fad7a07d5bebdbb242c5785465.tar.xz packages-f25c632def0d17fad7a07d5bebdbb242c5785465.zip |
Merge branch 'chntpw' into 'master'
user/chntpw: new port
See merge request adelie/packages!432
Diffstat (limited to 'user/chntpw/chntpw-110511-reged-no-deref-null.patch')
-rw-r--r-- | user/chntpw/chntpw-110511-reged-no-deref-null.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/user/chntpw/chntpw-110511-reged-no-deref-null.patch b/user/chntpw/chntpw-110511-reged-no-deref-null.patch new file mode 100644 index 000000000..0193cd493 --- /dev/null +++ b/user/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))) { |