* glob() returns different result on tru64 & Linux
@ 2007-06-08 8:55 mark.bergman
0 siblings, 0 replies; only message in thread
From: mark.bergman @ 2007-06-08 8:55 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-08 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-08 8:55 glob() returns different result on tru64 & Linux mark.bergman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox