Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42643 Details for
Bug 69042
gensync has no permission check
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds permissioncheck
gensync_permcheck.patch (text/plain), 1.26 KB, created by
Emil Beinroth
on 2004-10-26 10:26:34 UTC
(
hide
)
Description:
adds permissioncheck
Filename:
MIME Type:
Creator:
Emil Beinroth
Created:
2004-10-26 10:26:34 UTC
Size:
1.26 KB
patch
obsolete
>--- gensync.old 2004-10-26 19:18:25.000000000 +0200 >+++ gensync 2004-10-26 19:18:18.325608232 +0200 >@@ -167,7 +167,6 @@ > break > elif x in ["-C", "--no-color"]: > options.append("nocolor") >- break > elif x in ["-l", "--list-sources"]: > cmd = "list-sources" > elif x in ["-a", "--all-sources"]: >@@ -204,14 +203,22 @@ > for x in args: > repo = ssmgr.get_sync_source(x) > if repo: >- print "Syncing '%s' into '%s'" % \ >- (repo.id, repo.overlay) >- repo.perform_sync() >+ if os.access(repo.overlay, os.W_OK|os.X_OK): >+ print "Syncing '%s' into '%s'" % \ >+ (white(repo.id), white(repo.overlay)) >+ repo.perform_sync() >+ else: >+ print red("Cannot sync '%s'\nYou have no permissions to write to '%s'." % \ >+ (repo.id, repo.overlay)) > elif cmd == "all-sources": > for repo in ssmgr.get_all_sync_sources(): >- print "Syncing '%s' into '%s'" % \ >- (repo.id, repo.overlay) >- repo.perform_sync() >+ if os.access(repo.overlay, os.W_OK|os.X_OK): >+ print "Syncing '%s' into '%s'" % \ >+ (white(repo.id), white(repo.overlay)) >+ repo.perform_sync() >+ else: >+ print red("Cannot sync '%s'\nYou have no permissions to write to '%s'." % \ >+ (repo.id, repo.overlay)) > else: > print red("Unknown command '" + cmd + "'") >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69042
: 42643