Permalink
Browse files

fix getting uid

  • Loading branch information...
mdomsch committed Jun 19, 2012
1 parent f881b16 commit 6d4494102682ba857d4dc0ebe0a85db293957e06
Showing with 1 addition and 1 deletion.
  1. +1 −1 s3cmd
View
2 s3cmd
@@ -879,7 +879,7 @@ def cmd_sync_local2remote(args):
val = pwd.getpwuid(local_list[src]['uid']).pw_name
except KeyError:
attr = "uid"
- val = local_list[src].get(uid)
+ val = local_list[src].get('uid')
warning(u"%s: Owner username not known. Storing UID=%d instead." % (src, val))
elif attr == 'gname':
try:

0 comments on commit 6d44941

Please sign in to comment.