]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20071004 snapshot
authorChet Ramey <chet.ramey@case.edu>
Wed, 7 Dec 2011 14:13:41 +0000 (09:13 -0500)
committerChet Ramey <chet.ramey@case.edu>
Wed, 7 Dec 2011 14:13:41 +0000 (09:13 -0500)
builtins/ulimit.def

index d1ac71df4e6f5c0e055c396f6e2a5ddcdf646ca5..fd21e7296ef84c1765450615dde8cb2e8ab7684c 100644 (file)
@@ -1,7 +1,7 @@
 This file is ulimit.def, from which is created ulimit.c.
 It implements the builtin "ulimit" in Bash.
 
-Copyright (C) 1987-2006 Free Software Foundation, Inc.
+Copyright (C) 1987-2007 Free Software Foundation, Inc.
 
 This file is part of GNU Bash, the Bourne Again SHell.
 
@@ -687,7 +687,9 @@ printone (limind, curlim, pdesc)
      int pdesc;
 {
   char unitstr[64];
+  int factor;
 
+  factor = limits[limind].block_factor;
   if (pdesc)
     {
       if (limits[limind].units)
@@ -704,7 +706,7 @@ printone (limind, curlim, pdesc)
   else if (curlim == RLIM_SAVED_CUR)
     puts ("soft");
   else
-    print_rlimtype ((curlim / limits[limind].block_factor), 1);
+    print_rlimtype ((curlim / factor), 1);
 }
 
 /* Set all limits to NEWLIM.  NEWLIM currently must be RLIM_INFINITY, which