Module Name: src
Committed By: christos
Date: Tue Jun 8 18:04:17 UTC 2010
Modified Files:
src/etc: rc.subr
Log Message:
use modulo instead of logical and. from pooka
To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/etc/rc.subr
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.subr
diff -u src/etc/rc.subr:1.84 src/etc/rc.subr:1.85
--- src/etc/rc.subr:1.84 Tue Jun 8 09:48:58 2010
+++ src/etc/rc.subr Tue Jun 8 14:04:17 2010
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.84 2010/06/08 13:48:58 christos Exp $
+# $NetBSD: rc.subr,v 1.85 2010/06/08 18:04:17 christos Exp $
#
# Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1184,7 +1184,7 @@
if [ "$1" -lt 127 ]
then
echo "exited with code $1"
- elif [ "$(expr $1 & 255)" -eq 127 ]
+ elif [ "$(expr $1 % 256)" -eq 127 ]
then
# This cannot really happen because the shell will not
# pass stopped job status out and the exit code is limited