diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-01-05 07:33:38 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-01-05 07:33:38 +0000 |
commit | 74e91b9bb182eb7392b5a1ff79157c56d867f8af (patch) | |
tree | 1158fb10db5b4a0ecde9613772b7c46e4a9b0bb6 /sys/dev/systrace.c | |
parent | 62f8c7802d974050bc317df642874901a200574e (diff) |
return with ENOTTY instead of EINVAL for unknown ioctl requests.
ok krw@ deraadt@ dlg@
Diffstat (limited to 'sys/dev/systrace.c')
-rw-r--r-- | sys/dev/systrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index c46227b9c6e..9bce33ffe02 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.46 2007/09/11 13:39:33 gilles Exp $ */ +/* $OpenBSD: systrace.c,v 1.47 2008/01/05 07:33:37 brad Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -324,7 +324,7 @@ systracef_ioctl(fp, cmd, data, p) ret = EINVAL; break; default: - ret = EINVAL; + ret = ENOTTY; break; } @@ -399,7 +399,7 @@ systracef_ioctl(fp, cmd, data, p) ret = systrace_getcwd(fst, strp); break; default: - ret = EINVAL; + ret = ENOTTY; break; } |