Bug 139637 - security/wipe fails dealing with file permissions
Summary: security/wipe fails dealing with file permissions
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 10:40 UTC by cwf-ml
Modified: 2009-10-29 18:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cwf-ml 2009-10-15 10:40:00 UTC
according to its manpage wipe can deal with mssing w permissions if it has to - wipe -f should fortce file deletions.  In reality, it just throws the same error message:  wipe: cannot open `testfile2': Permission denied

How-To-Repeat: wefa@nxcon 11:27 [~/test]chmod ugo=rx testfile2
wefa@nxcon 11:27 [~/test]wipe testfile1
wefa@nxcon 11:27 [~/test]wipe testfile2
wipe: cannot open `testfile2': Permission denied
wefa@nxcon 11:27 [~/test]wipe -f testfile2
wipe: cannot open `testfile2': Permission denied
wefa@nxcon 11:27 [~/test]ls -al
total 232
drwxr-xr-x   2 wefa  wheel    1024 Oct 15 11:28 .
drwxr-xr-x  58 wefa  wheel    5120 Jul 30 20:35 ..
-r-xr-xr-x   1 wefa  wheel  204800 Oct 15 11:27 testfile2
wefa@nxcon 11:27 [~/test]pkg_info | grep wipe
wipe-2.2.0          File and block device wiping utility
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-10-18 20:59:16 UTC
Maintainer of security/wipe,

Please note that PR ports/139637 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/139637

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-10-18 20:59:18 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Robert Farmer 2009-10-19 23:35:53 UTC
This patch, for the port's files directory:

http://students.washington.edu/rfarmer/patch-prompt.c

should: 1) fix this issue by making wipe -f chmod files to gain write access
2) fix the core dump in PR 139611
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2009-10-29 18:19:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2009-10-29 18:27:59 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2009-10-29 18:28:06 UTC
amdmi3      2009-10-29 18:27:46 UTC

  FreeBSD ports repository

  Modified files:
    security/wipe        Makefile 
  Added files:
    security/wipe/files  patch-prompt.c 
  Log:
  - fix the core dump when wiping e.g. /tmp/testfile ([1])
  - fix permissions handling ([2])
  
  PR:             139611 [1], 139637 [2]
  Submitted by:   Michael <bug_report@arcor.de> [1], Christoph Weber-Fahr <cwf-ml@arcor.de> [2]
  Patch by:       Rob Farmer <rfarmer@predatorlabs.net> (maintainer)
  
  Revision  Changes    Path
  1.6       +1 -0      ports/security/wipe/Makefile
  1.1       +37 -0     ports/security/wipe/files/patch-prompt.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"