diff options
author | Mats Behre <mb.maillists@gmail.com> | 2017-06-28 22:48:09 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2017-06-28 22:48:09 -0400 |
commit | 35a8a43ba66e1e5ffdff0a283e398a6a1fc13a54 (patch) | |
tree | e7752d5bc633fd9875952332adbea68139c780b8 /showfond.c | |
parent | 399ea0471284c2433999fbcb2a2df6fa037fbaf2 (diff) |
POSIX compliant resource fork access.
Diffstat (limited to 'showfond.c')
-rw-r--r-- | showfond.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -619,12 +619,12 @@ static int HasResourceFork(char *filename) { /* If we're on a mac, we can try to see if we've got a real resource fork */ /* linux has an HFS+ driver (or whatever) too, so we might as well always */ /* do this check */ - char *respath = malloc(strlen(filename)+strlen("/rsrc")+1); + char *respath = malloc(strlen(filename)+strlen("/..namedfork/rsrc")+1); FILE *temp; int ret = false; strcpy(respath,filename); - strcat(respath,"/rsrc"); + strcat(respath,"/..namedfork/rsrc"); temp = fopen(respath,"r"); free(respath); if ( temp!=NULL ) { |