diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-07-04 18:09:52 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-07-04 18:09:52 +0800 |
commit | 5ea828eb55e60c49aca55092a252fca620741da0 (patch) | |
tree | 3ffdc827ac704b532a775d9874e8e5d02f1c23e4 /sysutils/ascpu/files | |
parent | 91de7e58e1df14a01e008c345871799ab0585c37 (diff) | |
download | freebsd-ports-gnome-5ea828eb55e60c49aca55092a252fca620741da0.tar.gz freebsd-ports-gnome-5ea828eb55e60c49aca55092a252fca620741da0.tar.zst freebsd-ports-gnome-5ea828eb55e60c49aca55092a252fca620741da0.zip |
Update to 1.9.
PR: 19679
Submitted by: maintainer
Diffstat (limited to 'sysutils/ascpu/files')
-rw-r--r-- | sysutils/ascpu/files/patch-sec01 | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/sysutils/ascpu/files/patch-sec01 b/sysutils/ascpu/files/patch-sec01 index d54a776f30a4..6f981eb660c6 100644 --- a/sysutils/ascpu/files/patch-sec01 +++ b/sysutils/ascpu/files/patch-sec01 @@ -1,21 +1,23 @@ ---- ascpu_x.c.orig Thu Dec 16 17:45:26 1999 -+++ ascpu_x.c Wed Dec 29 20:47:32 1999 -@@ -6,6 +6,7 @@ - * This software is distributed under GPL. For details see LICENSE file. - */ - -+#include <sys/types.h> - #include <stdio.h> - #include <errno.h> +--- ascpu_x.c.orig Mon Jul 3 21:39:16 2000 ++++ ascpu_x.c Mon Jul 3 21:39:19 2000 +@@ -18,6 +18,7 @@ + #include <nlist.h> #include <fcntl.h> -@@ -585,6 +586,10 @@ + #include <kvm.h> ++#include <sys/types.h> + #endif + + #ifdef __hpux__ +@@ -626,6 +627,12 @@ #ifdef DEBUG - printf("ascpu: system(%s)\n",Command); + printf("ascpu: system(%s)\n",Command); #endif -+ if (setgid(getgid()) != 0) -+ err(1, "Can't drop setgid privileges"); -+ if (setuid(getuid()) != 0) -+ err(1, "Can't drop setuid privileges"); - system( Command ); - } - break; ++ ++ if (setgid(getgid()) != 0) ++ err(1, "Can't drop setgid privileges"); ++ if (setuid(getuid()) != 0) ++ err(1, "Can't drop setuid privileges"); ++ + if( ! Command ) { + return; + } |