Bug 500813 - ecryptfs-rewrite-file should be more wise when dealing with non-existing/bogus files
Summary: ecryptfs-rewrite-file should be more wise when dealing with non-existing/bogu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ecryptfs-utils
Version: 5.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-14 10:41 UTC by Michal Nowak
Modified: 2013-03-08 02:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:57:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
sent upstream (1.43 KB, patch)
2009-05-18 12:52 UTC, Michal Hlavinka
no flags Details | Diff
improved one (1.48 KB, patch)
2009-06-01 11:13 UTC, Michal Nowak
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1307 0 normal SHIPPED_LIVE Low: ecryptfs-utils security, bug fix, and enhancement update 2009-09-01 10:20:43 UTC

Description Michal Nowak 2009-05-14 10:41:02 UTC
Description of problem:

[root@hp-ml370g4-01 Private]# ecryptfs-rewrite-file .

OK

[root@hp-ml370g4-01 Private]# ecryptfs-rewrite-file . df sdsds
INFO: Rewriting [1/3] [df] ... [OK]
INFO: Rewriting [2/3] [sdsds] ... cp: cannot stat `sdsds': No such file or directory

ERROR: Could not copy [sdsds] to [sdsds.KiSoJ14967]


- something like [3/3] is missing here ('.' is missing here and should be treated as "ERROR")

- "cp: cannot stat `sdsds': No such file or directory" should be avoided in this place and "[FAILED]" is more appropriate + some nice "ERROR:" msg below ("ERROR: No such file or directory"?). 

Version-Release number of selected component (if applicable):

ecryptfs-utils-75-1.el5

Comment 1 Michal Hlavinka 2009-05-18 12:52:56 UTC
Created attachment 344431 [details]
sent upstream

Comment 5 Michal Nowak 2009-06-01 11:13:17 UTC
Created attachment 346074 [details]
improved one

Comment 10 errata-xmlrpc 2009-09-02 09:57:36 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-1307.html


Note You need to log in before you can comment on or make changes to this bug.