Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: mark.bergman@thales-is.com
Subject: glob() returns different result on tru64 & Linux
Date: Fri, 08 Jun 2007 01:55:06 -0700	[thread overview]
Message-ID: <1181292906.453687.78810@n4g2000hsb.googlegroups.com> (raw)

[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



                 reply	other threads:[~2007-06-08  8:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox