<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ls Command Buffer Limit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-buffer-limit/m-p/2421017#M766705</link>
    <description>Does anyone know if there is a 'buffer limit' in HP UNIX server when doing an &lt;BR /&gt;ls command with a quantifier, for example:  ls *.IRCOMPLX  ?&lt;BR /&gt;&lt;BR /&gt;Some claims have been made that when this type of command is executed on an FTP &lt;BR /&gt;session and there are too many files in the directory that an error message &lt;BR /&gt;occurs to the effect that a buffer limit has been reached and so all the files &lt;BR /&gt;in the directory do not list.  We have been unable to duplicate this condition &lt;BR /&gt;from any of our non-HP UNIX servers so we are having a difficult time &lt;BR /&gt;troubleshooting it.&lt;BR /&gt;&lt;BR /&gt;Any ideas if this 'buffer limit' claim is true or are there other explanations?</description>
    <pubDate>Wed, 05 Apr 2000 17:28:22 GMT</pubDate>
    <dc:creator>Kris Jugo</dc:creator>
    <dc:date>2000-04-05T17:28:22Z</dc:date>
    <item>
      <title>ls Command Buffer Limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-buffer-limit/m-p/2421017#M766705</link>
      <description>Does anyone know if there is a 'buffer limit' in HP UNIX server when doing an &lt;BR /&gt;ls command with a quantifier, for example:  ls *.IRCOMPLX  ?&lt;BR /&gt;&lt;BR /&gt;Some claims have been made that when this type of command is executed on an FTP &lt;BR /&gt;session and there are too many files in the directory that an error message &lt;BR /&gt;occurs to the effect that a buffer limit has been reached and so all the files &lt;BR /&gt;in the directory do not list.  We have been unable to duplicate this condition &lt;BR /&gt;from any of our non-HP UNIX servers so we are having a difficult time &lt;BR /&gt;troubleshooting it.&lt;BR /&gt;&lt;BR /&gt;Any ideas if this 'buffer limit' claim is true or are there other explanations?</description>
      <pubDate>Wed, 05 Apr 2000 17:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-buffer-limit/m-p/2421017#M766705</guid>
      <dc:creator>Kris Jugo</dc:creator>
      <dc:date>2000-04-05T17:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: ls Command Buffer Limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-buffer-limit/m-p/2421018#M766706</link>
      <description>There is certainly a limit.  What that limit is depends on how ftpd is &lt;BR /&gt;operating internally.  To get a clue, I downloaded the source code for wu-ftpd &lt;BR /&gt;and examined it.  That was very interesting.  It invokes a special version of &lt;BR /&gt;popen that does not invoke a shell.  It does this so a cracker cannot open a &lt;BR /&gt;pipe to arbitrary commands by creating screwy filenames.  Interesting security &lt;BR /&gt;problem.&lt;BR /&gt;&lt;BR /&gt;I am going to guess that HP is using a conventional popen(3) that does invoke a &lt;BR /&gt;shell.  Indeed, all shells have a command buffer, at least LINE_MAX bytes big.  &lt;BR /&gt;Commands that are too large will not work.&lt;BR /&gt;&lt;BR /&gt;Even with the world largest command line buffer, there is a second limit.  The &lt;BR /&gt;ls program must be invoked by exec(2) in order to run and exec(2) imposes a &lt;BR /&gt;limit on the number of its arguments.  This limit is at least ARG_MAX.&lt;BR /&gt;&lt;BR /&gt;My limits(5) manpage says that ARG_MAX is 5120 and LINE_MAX is 2048.  But you &lt;BR /&gt;should check your manpage. &lt;BR /&gt;&lt;BR /&gt;Maybe wu-ftpd will increase the apparent limit for you.  But I really must add &lt;BR /&gt;that directories should not have so many files that these limits are issues.  &lt;BR /&gt;The are performance problems with large directories.</description>
      <pubDate>Thu, 06 Apr 2000 05:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-command-buffer-limit/m-p/2421018#M766706</guid>
      <dc:creator>Paul Hite_2</dc:creator>
      <dc:date>2000-04-06T05:09:40Z</dc:date>
    </item>
  </channel>
</rss>

