]> Shamusworld >> Repos - rln/commitdiff
More archive file hacking...
authorShamus Hammons <jlhamm@acm.org>
Tue, 16 Dec 2014 14:49:23 +0000 (08:49 -0600)
committerShamus Hammons <jlhamm@acm.org>
Tue, 16 Dec 2014 14:49:23 +0000 (08:49 -0600)
rln.c

diff --git a/rln.c b/rln.c
index 080ef5190568d3a677c7e1385c0d60ef8569b194..0a1d2aac0fd19dca7d2e72d04ac9561821df6053 100644 (file)
--- a/rln.c
+++ b/rln.c
@@ -2371,7 +2371,10 @@ int DoArchive(char * fname, int fd)
                        objSize[i] = ptr[48 + i];
                }
 
-               if (HasDotOSuffix(objName))
+               // Need to fix this so that the " <number>" files are properly
+               // expanded to their filenames (seems to be either "//" or
+               // "ARFILENAMES/")
+               if ((HasDotOSuffix(objName)) || (strlen(objName) == 0))
                {
 //printf("Processing object \"%s\" (size == %i, obj_index == %i)...\n", objName, atoi(objSize), obj_index);
                        strcpy(obj_fname[obj_index], objName);