← Back to team overview

ecryptfs team mailing list archive

[Bug 257984] Re: ecryptfs-setup-private fails if GREP_OPTIONS is set with --line-number

 

This patch should be applied to upstream ecryptfs-utils.

:-Dustin

** Also affects: ecryptfs
   Importance: Undecided
       Status: New

** Attachment added: "40-zero_out_grep_options.dpatch"
   http://launchpadlibrarian.net/18186515/40-zero_out_grep_options.dpatch

** Changed in: ecryptfs
   Importance: Undecided => Medium
     Assignee: (unassigned) => Dustin Kirkland (kirkland)
       Status: New => In Progress

-- 
ecryptfs-setup-private fails if GREP_OPTIONS is set with --line-number
https://bugs.launchpad.net/bugs/257984
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.

Status in eCryptfs - Enterprise Cryptographic Filesystem: In Progress
Status in “ecryptfs-utils” source package in Ubuntu: Fix Released

Bug description:
Binary package hint: ecryptfs-utils

if a user has exported GREP_OPTIONS with --line-number, then the query from /etc/passwd for the user's home directory fails. This is due tot he fact that awk is splitting on : with the -F option, and the line number is prepended with a : before the grep line. 

The result is the user is presented with an error like the following: "ERROR: User home directory [xxxxx] does not exist".

In order to fix this, something similar to the apache init script could be added, which performs the following:

ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"