xfs
[Top] [All Lists]

Re: scandir and xfs

To: Ron Henry <dijital1@xxxxxxxxxxxxxx>
Subject: Re: scandir and xfs
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Thu, 26 Sep 2002 23:18:01 -0500 (CDT)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <1033097992.377.12.camel@illuminati>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Just rearrange your parentheses a bit...

--- scandir.c.orig      Thu Sep 26 23:12:50 2002
+++ scandir.c   Thu Sep 26 23:13:07 2002
@@ -11,7 +11,7 @@
         exit(1);
     }
 
-    if((j=scandir(argv[1], &curdir, 0, alphasort) < 0)) {
+    if((j=scandir(argv[1], &curdir, 0, alphasort)) < 0) {
         perror("scandir");
         exit(1);
     }

I had this same silly bug in a test app this week.  :)

-Eric

On 26 Sep 2002, Ron Henry wrote:

> does scandir work under xfs?


<Prev in Thread] Current Thread [Next in Thread>