Merge lp://qastaging/~sergio-pena/ecryptfs/917509 into lp://qastaging/~ecryptfs/ecryptfs/oldtrunk2

Proposed by Sergio Peña
Status: Merged
Merged at revision: 685
Proposed branch: lp://qastaging/~sergio-pena/ecryptfs/917509
Merge into: lp://qastaging/~ecryptfs/ecryptfs/oldtrunk2
Diff against target: 311 lines (+85/-166)
3 files modified
src/include/ecryptfs.h (+0/-1)
src/libecryptfs/main.c (+0/-100)
src/utils/mount.ecryptfs.c (+85/-65)
To merge this branch: bzr merge lp://qastaging/~sergio-pena/ecryptfs/917509
Reviewer Review Type Date Requested Status
Dustin Kirkland  Needs Fixing
Tyler Hicks Needs Fixing
Review via email: mp+103779@code.qastaging.launchpad.net

Description of the change

Here's the code with the use of execl() to mount eCryptfs.

I edited the last proposal after comments from Tyler.

I tested this on Ubuntu Precise and Centos 6.2.
The test included the use of /etc/fstab with noatime,noauto flags. Also I did the mount manually with noauto,noatime options and others ecryptfs options.

To post a comment you must log in.
Revision history for this message
Tyler Hicks (tyhicks) wrote :

Thanks, Sergio! One last change needs to made. Check the man page of waitpid() and note that WEXITSTATUS() should only be used if WIFEXITED() is true.

review: Needs Fixing
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Sergio,

 - Also, check the indentation of your new ecryptfs_mount(), which is inconsistent with the rest of that file.
 - "if (strlen(opts) > 200) {" ... can we use a suitable constant here instead of an arbitrary "200"?
 - num_opts can go away, as that variable is no longer used, as can flags, in ecryptfs_do_mount()

:-Dustin

review: Needs Fixing
677. By Sergio Peña

* Check WIFEXITED() macro before use WEXITSTATUS().
* Fix code indentation.
* Remove unused variables.

Revision history for this message
Sergio Peña (sergio-pena) wrote :

Hi,

Here are the fixes based on your comments from your last merge proposal review.

678. By Sergio Peña

* Move --no-canonicalize before -t parameter. Current position
  was causing an error when mounting eCryptfs.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches