summaryrefslogtreecommitdiff
path: root/usr/src/ucbcmd
diff options
context:
space:
mode:
authorcraigm <none@none>2006-06-09 15:37:25 -0700
committercraigm <none@none>2006-06-09 15:37:25 -0700
commit560f878bce5cdf0661659001415019ca5c8a01b4 (patch)
tree8f997d012b3aa4f43182d3d5c7a90dc1a0c457f9 /usr/src/ucbcmd
parent548d5ca97827c8ff6a6878f91d59fb6f76f7505e (diff)
downloadillumos-joyent-560f878bce5cdf0661659001415019ca5c8a01b4.tar.gz
4319640 */usr/ucb/file* should use "$@" in place of "$*" to preserve args
Contributed by Peter Tribble <peter.tribble@gmail.com>
Diffstat (limited to 'usr/src/ucbcmd')
-rw-r--r--usr/src/ucbcmd/file/file.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/src/ucbcmd/file/file.sh b/usr/src/ucbcmd/file/file.sh
index 2618c05819..185058eb9b 100644
--- a/usr/src/ucbcmd/file/file.sh
+++ b/usr/src/ucbcmd/file/file.sh
@@ -3,9 +3,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -21,10 +20,11 @@
# CDDL HEADER END
#
-#ident "%Z%%M% %I% %E% SMI"
-
#
-# Copyright (c) 1991 by Sun Microsystems, Inc.
+# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
#
# This script invokes /usr/bin/file with -h option by default and
@@ -48,4 +48,4 @@ do
esac
done
shift `expr $OPTIND - 1`
-/usr/bin/file $HFLAG $CFLAG $MFLAG $MARG $FFLAG $FARG $*
+exec /usr/bin/file $HFLAG $CFLAG $MFLAG $MARG $FFLAG $FARG "$@"