Merge lp://staging/~wlxing/ecryptfs/fix-bug-1678689 into lp://staging/ecryptfs
Status: | Merged |
---|---|
Merged at revision: | 886 |
Proposed branch: | lp://staging/~wlxing/ecryptfs/fix-bug-1678689 |
Merge into: | lp://staging/ecryptfs |
Diff against target: |
12 lines (+2/-0) 1 file modified
src/libecryptfs/cmd_ln_parser.c (+2/-0) |
To merge this branch: | bzr merge lp://staging/~wlxing/ecryptfs/fix-bug-1678689 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tyler Hicks | Approve | ||
Michal Hlavinka | Pending | ||
Review via email: mp+321653@code.staging.launchpad.net |
Description of the change
This revision(r886) is linked to #bug1678689.
Error Case: In the original version, users cannot mount ecryptfs with "-o passphrase_
Error Hint:
http://
Explanation:
Because in the manner of process_comma_tok() function (in the src/libecryptfs
Patch:
Thus, I add two lines in process_comma_tok() to change that case. If we match one "=" character in the string, we don't need to loop and match another "=" again. More details in #change of my branch.
Hi Jason - Thanks for the fix!
As you know, the code that you're patching breaks "name=value" pairs up into individual parts. The 'i' variable is used to represent the length of the "name" portion of the string.
I don't think it is correct to set i equal to st_len as st_len is the length of the entire "name=value" string. IIUC, simply adding a break would fix the bug.
What was your reasoning for setting i to st_len?