X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/2ce085d2e49282262e1b49b636a43d5a45c23e18..de4648f42c358b2875ed9467ca95a9b2aca852f9:/gen/zero_quotas diff --git a/gen/zero_quotas b/gen/zero_quotas index 02567907..ee7f001a 100644 --- a/gen/zero_quotas +++ b/gen/zero_quotas @@ -18,13 +18,13 @@ if ( -f /etc/zero_old_quotas ) then while (1) # set args = $< will NOT work. $< will be treated as a single word set args = `echo $<` - + if (${#args} != 2) break # end of input set uid = $args[1] @ checksorted = ($current_uid <= $uid) - if (checksorted == 0) then + if (checksorted == 0) then echo "Input not sorted" exit $MR_SETQUOTA endif @@ -39,10 +39,10 @@ if ( -f /etc/zero_old_quotas ) then @ current_uid = $uid + 1 end - + # zero all remaining quotas, except for nobody (32767). if ($current_uid != 32767) setquota -r $dev $current_uid 32766 0 - + endif exit 0