diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2003-07-13 22:10:16 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2003-07-13 22:10:16 +0000 |
commit | 9f3f02941b510a83c1882a80d1c3453707c8113b (patch) | |
tree | 44d0c28d54f887985b9cea40323b4d545e1ebae3 | |
parent | 3e60666884e16cbad1fbe8aa8ef5a73ebe9a0f25 (diff) | |
download | ports-9f3f02941b510a83c1882a80d1c3453707c8113b.tar.gz ports-9f3f02941b510a83c1882a80d1c3453707c8113b.zip |
Fix a problem of poor testing where due to an overload of #ifdef's, the
default "return 0;" of an int returning function was never executed;
causing what ever was in the return register to be "it".
Notes
Notes:
svn path=/head/; revision=84816
-rw-r--r-- | security/super/files/patch-utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/security/super/files/patch-utils.c b/security/super/files/patch-utils.c new file mode 100644 index 000000000000..827a2751bc00 --- /dev/null +++ b/security/super/files/patch-utils.c @@ -0,0 +1,14 @@ +--- utils.c.orig Mon Jun 16 15:34:14 2003 ++++ utils.c Sun Jul 13 15:06:15 2003 +@@ -1272,9 +1272,10 @@ + if (add_variable("SI_SYSNAME", buf) == -1) + return -1; + } +- return 0; + #endif + #endif ++ ++ return 0; + } + + #ifdef HAVE_UNAME |