summaryrefslogtreecommitdiff
path: root/source3/script/smbtar
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script/smbtar')
-rw-r--r--source3/script/smbtar10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/script/smbtar b/source3/script/smbtar
index dcf01edb20..20422b0334 100644
--- a/source3/script/smbtar
+++ b/source3/script/smbtar
@@ -54,6 +54,16 @@ Options: (Description) (Default)
exit $ex
}
+echo Params count: $#
+
+# DEC OSF AKA Digital UNIX does not seem to return a value in OPTIND if
+# there are no command line params, so protect us against that ...
+if [ $# = 0 ]; then
+
+ Usage 2 "Please enter a command line parameter!"
+
+fi
+
while getopts rivl:b:d:N:s:p:x:u:Xt: c; do
case $c in
r) # [r]estore to Windows (instead of the default "Save from Windows")