Browse code

Merge branch 'bug/put-from-stdin' into merge

Matt Domsch authored on 2014/01/21 04:28:38
Showing 2 changed files
... ...
@@ -191,6 +191,10 @@ def fetch_local_list(args, is_src = False, recursive = None):
191 191
                 'full_name' : '-',
192 192
                 'size' : -1,
193 193
                 'mtime' : -1,
194
+                'uid' : os.geteuid(),
195
+                'gid' : os.getegid(),
196
+                'dev' : 0,
197
+                'inode': 0,
194 198
             }
195 199
             return loc_list, True
196 200
         if local_uri.isdir():
... ...
@@ -1083,8 +1083,12 @@ def _build_attr_header(local_list, src):
1083 1083
             except IOError:
1084 1084
                 val = None
1085 1085
         else:
1086
-            val = getattr(local_list[src]['sr'], 'st_' + attr)
1087
-        attrs[attr] = val
1086
+            try:
1087
+                val = getattr(local_list[src]['sr'], 'st_' + attr)
1088
+            except:
1089
+                val = None
1090
+        if val is not None:
1091
+            attrs[attr] = val
1088 1092
 
1089 1093
     if 'md5' in attrs and attrs['md5'] is None:
1090 1094
         del attrs['md5']