bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

the description 'A hard limit cannot be increased once it is set' sh


From: Cai Xianchao
Subject: the description 'A hard limit cannot be increased once it is set' should be modified in the manpage
Date: Mon, 17 Sep 2007 18:54:08 +0800
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Hello everybody,

I find a bug in the manpage of ulimit(Package: bash Version: 3.2):
The description  'A hard limit cannot be  increased  once it  is set' should be 
modified to
'A hard limit cannot be increased once it is set unless the user is root'.

When the user is root,the hard limit can be increased:
 ======================================================  
address@hidden ~]# ulimit -He
0
address@hidden ~]# ulimit -He 100
address@hidden ~]# ulimit -He
100
======================================================

I have made a patch for the manpage of the latest release of ulimit (bash-3.2).
The content of the patch:
--- bash.1      2007-09-17 10:44:56.000000000 -0400
+++ bash.1.orig 2007-09-17 09:46:52.000000000 -0400
@@ -8494,9 +8494,8 @@
 processes started by it, on systems that allow such control.
 The \fB\-H\fP and \fB\-S\fP options specify that the hard or soft limit is
 set for the given resource.  A hard limit cannot be increased once it
-is set; a soft limit may be increased up to the value of the hard limit.
-If neither \fB\-H\fP nor \fB\-S\fP is specified, both the soft and hard
-limits are set.
+is set unless the user is root; a soft limit may be increased up to the value 
ofthe hard limit. If neither \fB\-H\fP nor \fB\-S\fP is specified, both the soft
+and hard limits are set.
 The value of
 .I limit
 can be a number in the unit specified for the resource

Could you confirm and apply it in the next release?
Thanks a lot.

Regards
Cai Xianchao







reply via email to

[Prev in Thread] Current Thread [Next in Thread]