Bug 8781 - upgradeprovision fails if sysvol is missing
upgradeprovision fails if sysvol is missing
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: Other
unspecified
All All
: P5 normal
: ---
Assigned To: Jelmer Vernooij
samba4-qa@samba.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-26 23:51 UTC by Jelmer Vernooij
Modified: 2012-02-29 11:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jelmer Vernooij 2012-02-26 23:51:49 UTC
If sysvol is missing (for example, for standalone installations), upgradeprovision will currently fail:

Traceback (most recent call last):
  File "/usr/share/samba/setup/upgradeprovision", line 1719, in <module>
    backup_provision(paths, backupdir)
  File "/usr/share/samba/setup/upgradeprovision", line 1526, in backup_provision
    shutil.copytree(paths.sysvol, os.path.join(dir, "sysvol"))
  File "/usr/lib/python2.7/shutil.py", line 169, in copytree
    names = os.listdir(src)
TypeError: coercing to Unicode: need string or buffer, NoneType found