Do not set default AFS_SYSCALL 38/11938/11
authorAndrew Deason <adeason@sinenomine.net>
Fri, 13 Mar 2015 15:33:05 +0000 (10:33 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Sat, 10 Feb 2018 15:29:09 +0000 (10:29 -0500)
commit0a896b93c86e86f5b438880ef1634b4e39ee5779
treeee27d1acbec09fb89fdbe688331d3e95d464d0b8
parented513bb516acdb28fc6bbf01714ef2e1df422a8a
Do not set default AFS_SYSCALL

Currently, afs_args.h will define an AFS_SYSCALL value by default (31)
if the current platform does not define an AFS_SYSCALL value on its
own (via its param.h info).

This is dangerous, since if a platform does not define an AFS_SYSCALL,
or if it happens to not be defined for any reason, some code may try
to call syscall 31, which could be anything.

So get rid of this. If this breaks the build on any platform, then
that platform should define AFS_SYSCALL in its own platform-specific
header, or get rid of the problematic AFS_SYSCALL usage.

Change-Id: I9583c8e5adc4106848a437d81306000490787ef3
Reviewed-on: https://gerrit.openafs.org/11938
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/config/afs_args.h