]> andersk Git - moira.git/blame - gen/install_quotas
fix problem with reused variable; don't free data structures,
[moira.git] / gen / install_quotas
CommitLineData
b8e4bdf8 1#!/bin/csh -f
2#
3# This script sets the quota for a uid on a filesystem.
4
5set dev=$1
6
7# Checking for /etc/enforce_quota is transitional code and should be
8# removed when the SMS database has an accurate understanding of what
9# everyone's quotas are.
10if ( -f /etc/enforce_quota ) then
11 while (1)
12 # set args = $< will NOT work. $< will be treated as a single word
13 set args = `echo $<`
14
15 if (${#args} != 2) break
16
17 set uid = args[1]
18 set quota = args[2]
19
20 setquota -u $dev $uid $quota
21 if ($status) ### Soft failure
22 end
23endif
24
25exit 0
26
27#
28# $Source$
29# $Header$
30#
This page took 0.048587 seconds and 5 git commands to generate.