projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c7a26a8
)
Treat no limit separately.
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sun, 29 Nov 2009 15:03:08 +0000 (15:03 +0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sun, 29 Nov 2009 15:03:08 +0000 (15:03 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2867
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
src/vdlimit.c
patch
|
blob
|
history
diff --git
a/src/vdlimit.c
b/src/vdlimit.c
index
97690bd
..
b6ce585
100644
(file)
--- a/
src/vdlimit.c
+++ b/
src/vdlimit.c
@@
-123,7
+123,10
@@
writeInt(int fd, char const *prefix, unsigned int val)
if (prefix)
WRITE_STR(fd, prefix);
- Vwrite(fd, buf, len);
+ if (val == VC_CDLIM_INFINITY)
+ WRITE_STR(fd, "-1");
+ else
+ Vwrite(fd, buf, len);
}
static void