warvair / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Fileselector: missing "parent directory" on Macdrive-mounted drives #506

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by EAB user "Akira":
(...) In some volumes, when I try to load or save something, as I enter 
directories, I can't go to PARENT DIRECTORY. I think this happens only in my 
Mac volumes (mounted on the PC by Macdrive). (...)
It's totally missing. It's only happening on my external, HFS formatted drives. 
I assume it's some sort of conflict with the way Macdrive maps the HFS drives 
in the system. every other application works transparently, though.
http://eab.abime.net/showthread.php?p=838679
(#36)

Original issue reported on code.google.com by yrizoud on 17 Sep 2012 at 12:17

GoogleCodeExporter commented 9 years ago
At the moment, the Windows version trusts readdir() to enumerate ".." if the 
directory has a parent.
From this report, it seems it's not always true.
Testing with "network" mounted drives letters, it seems also buggy:
- some subdirectories don't show .. even though I have the rights to navigate 
there
- The root of one drive shows .. (a false positive)

In any case, note that even when the "parent directory" entry is missing, you 
can type ..<enter> in the Filename to go up one directory (except on 
Amiga-based OSes).

Original comment by yrizoud on 17 Sep 2012 at 12:25

GoogleCodeExporter commented 9 years ago
Fixed in r1994, but might need a test on Linux, especially with and without 
"show hidden files/directory" option

Original comment by yrizoud on 17 Sep 2012 at 9:12

GoogleCodeExporter commented 9 years ago
It crashes during compile with:

gcc -W -Wall -Wdeclaration-after-statement -std=c99 -c -g `sdl-config --cflags` 
 `pkg-config lua --cflags --silence-errors ||pkg-config lua5.1 --cflags 
--silence-errors ||pkg-config lua-5.1 --cflags` -D__ENABLE_LUA__  -O 
`pkg-config --cflags libpng`  -c io.c -o ../obj/unix/io.o
io.c: In function ‘File_is_hidden’:
io.c:342:28: error: ‘entry’ undeclared (first use in this function)
io.c:342:28: note: each undeclared identifier is reported only once for each 
function it appears in
io.c:342:28: warning: left-hand operand of comma expression has no effect
io.c:342:28: warning: value computed is not used
io.c:342:28: warning: left-hand operand of comma expression has no effect
io.c:344:1: warning: control reaches end of non-void function
make: *** [../obj/unix/io.o] Error 1

Original comment by gry...@gmail.com on 22 Sep 2012 at 2:07

GoogleCodeExporter commented 9 years ago
Woops sorry. This and other unix-specific errors are fixed by r2006.
Tested on Debian (lenny)

Original comment by yrizoud on 22 Sep 2012 at 6:03