]> git.sur5r.net Git - bacula/bacula/commitdiff
reorder stream/data_stream tests so set_win32_attributes gets called
authorChristopher S. Hull <csh@raidersolutions.com>
Sun, 22 Feb 2004 21:50:15 +0000 (21:50 +0000)
committerChristopher S. Hull <csh@raidersolutions.com>
Sun, 22 Feb 2004 21:50:15 +0000 (21:50 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1069 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/findlib/attribs.c

index 6cfcaa640487e2d636f3f1134a2f72d09c2b0296..99237457fbeaef06d8d45bc44c914ac5f60ca061 100755 (executable)
@@ -278,6 +278,14 @@ int set_attributes(JCR *jcr, ATTR *attr, BFILE *ofd)
    int stat = 1;
 
 #if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
+   if (attr->stream == STREAM_UNIX_ATTRIBUTES_EX &&
+       set_win32_attributes(jcr, attr, ofd)) {
+       if (is_bopen(ofd)) {
+          bclose(ofd); 
+       }
+       pm_strcpy(&attr->ofname, "*none*");
+       return 1;
+   }
    if (attr->data_stream == STREAM_WIN32_DATA ||
        attr->data_stream == STREAM_WIN32_GZIP_DATA) {
       if (is_bopen(ofd)) {
@@ -287,14 +295,7 @@ int set_attributes(JCR *jcr, ATTR *attr, BFILE *ofd)
       return 1;
    }
 
-   if (attr->stream == STREAM_UNIX_ATTRIBUTES_EX &&
-       set_win32_attributes(jcr, attr, ofd)) {
-      if (is_bopen(ofd)) {
-        bclose(ofd); 
-      }
-      pm_strcpy(&attr->ofname, "*none*");
-      return 1;
-   }
+
    /*
     * If Windows stuff failed, e.g. attempt to restore Unix file
     *  to Windows, simply fall through and we will do it the