summaryrefslogtreecommitdiff
path: root/showfond.c
diff options
context:
space:
mode:
authorMats Behre <mb.maillists@gmail.com>2017-06-28 22:48:09 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2017-06-28 22:48:09 -0400
commit35a8a43ba66e1e5ffdff0a283e398a6a1fc13a54 (patch)
treee7752d5bc633fd9875952332adbea68139c780b8 /showfond.c
parent399ea0471284c2433999fbcb2a2df6fa037fbaf2 (diff)
POSIX compliant resource fork access.
Diffstat (limited to 'showfond.c')
-rw-r--r--showfond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/showfond.c b/showfond.c
index 47890ac..8e62fda 100644
--- a/showfond.c
+++ b/showfond.c
@@ -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 ) {