Merge lp:~mhlavink/ecryptfs/mydev2 into lp:~ecryptfs/ecryptfs/ecryptfs-utils

Proposed by Michal Hlavinka
Status: Merged
Merge reported by: Dustin Kirkland 
Merged at revision: not available
Proposed branch: lp:~mhlavink/ecryptfs/mydev2
Merge into: lp:~ecryptfs/ecryptfs/ecryptfs-utils
Diff against target: None lines
To merge this branch: bzr merge lp:~mhlavink/ecryptfs/mydev2
Reviewer Review Type Date Requested Status
Dustin Kirkland  Approve
Review via email: mp+4721@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michal Hlavinka (mhlavink) wrote :

some fixes

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

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/desktop/ecryptfs-mount-private.desktop'
2--- src/desktop/ecryptfs-mount-private.desktop 2009-02-03 08:50:36 +0000
3+++ src/desktop/ecryptfs-mount-private.desktop 2009-03-20 10:13:44 +0000
4@@ -4,4 +4,4 @@
5 Exec=/usr/bin/ecryptfs-mount-private
6 Terminal=true
7 Type=Application
8-Categories=System;
9+Categories=System;Security;
10
11=== modified file 'src/desktop/ecryptfs-setup-private.desktop'
12--- src/desktop/ecryptfs-setup-private.desktop 2009-02-03 08:50:36 +0000
13+++ src/desktop/ecryptfs-setup-private.desktop 2009-03-20 10:13:44 +0000
14@@ -4,4 +4,4 @@
15 Exec=/usr/bin/ecryptfs-setup-private
16 Terminal=true
17 Type=Application
18-Categories=System;Preferences;
19+Categories=Settings;Security;
20
21=== modified file 'src/utils/ecryptfs-setup-private'
22--- src/utils/ecryptfs-setup-private 2009-03-18 22:00:04 +0000
23+++ src/utils/ecryptfs-setup-private 2009-03-20 09:39:09 +0000
24@@ -97,7 +97,8 @@
25 }
26
27 filename_encryption_available() {
28- version=$(cat /sys/fs/ecryptfs/version)
29+ version=$(cat /sys/fs/ecryptfs/version 2>/dev/null)
30+ [ -z "$version" ] && error "Can't get ecryptfs version, ecryptfs kernel module not loaded?"
31 [ $(($version & 0x100)) -eq 0 ] && return 1
32 return 0
33 }
34
35=== modified file 'src/utils/umount.ecryptfs.c'
36--- src/utils/umount.ecryptfs.c 2009-02-18 23:33:03 +0000
37+++ src/utils/umount.ecryptfs.c 2009-03-20 16:29:31 +0000
38@@ -26,6 +26,14 @@
39 #include <unistd.h>
40 #include "ecryptfs.h"
41
42+static void usage()
43+{
44+ fprintf(stderr, "\teCryptfs umount helper\n\tusage: "
45+ "umount [ecryptfs mount point]\n"
46+ );
47+ exit(-EINVAL);
48+}
49+
50 /**
51 * Parses a string of mount options, searching for an option name, and returns
52 * a pointer to the option value. For example, if name was "ecryptfs_sig=",
53@@ -148,6 +156,9 @@
54 char **new_argv;
55 int rc;
56
57+ if (argc<2)
58+ usage();
59+
60 if (unlink_keys_from_keyring(argv[1]))
61 fprintf(stderr, "Could not unlink the key(s) from your keying. "
62 "Please use `keyctl unlink` if you wish to remove the "

Subscribers

People subscribed via source and target branches