From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,9ae760d66b03df3f,start X-Google-Attributes: gidfa528,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!n4g2000hsb.googlegroups.com!not-for-mail From: mark.bergman@thales-is.com Newsgroups: comp.unix.tru64 Subject: glob() returns different result on tru64 & Linux Date: Fri, 08 Jun 2007 01:55:06 -0700 Organization: http://groups.google.com Message-ID: <1181292906.453687.78810@n4g2000hsb.googlegroups.com> NNTP-Posting-Host: 212.49.213.148 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1181292906 20546 127.0.0.1 (8 Jun 2007 08:55:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Jun 2007 08:55:06 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: n4g2000hsb.googlegroups.com; posting-host=212.49.213.148; posting-account=VEJ86AwAAAD4rSPnVzOTKwYeqs4Y4uxm Xref: g2news1.google.com comp.unix.tru64:995 [Recently posted to comp.unix.programmer & comp.os.misc.linux with no strong results] I am porting from Digital Unix to Linux (RHEL 4), and am seeing a difference in the return value of glob(). Given a non-existant directory "/tmp/a", and the following line of code: result = glob("/tmp/a", GLOB_ERR, NULL, &globInfo); - result is set to GLOB_NOMATCH on both platforms. However, if the first parameter is changed to "/tmp/a/*", i.e. searching for files within the directory, the return value on Digital Unix is still GLOB_NOMATCH, but on RHEL it is GLOB_ABORTED (2) Which is correct? (I have seen the man pages, and some Google matches mentioning earlier Linux bugs, but am still confused!) TIA Mark