diff --git a/bin/CryptoBoxRootActions b/bin/CryptoBoxRootActions index 9061fa2..894b588 100755 --- a/bin/CryptoBoxRootActions +++ b/bin/CryptoBoxRootActions @@ -158,11 +158,17 @@ def isWriteable(path, force_dev_type=None): """ # first check, if the device/file exists if not os.path.exists(path): + sys.stderr.write("%s does not exist!\n" % path) return False # check the type of the path - if necessary if (not force_dev_type is None) and \ (force_dev_type != os.stat(path).st_mode % 65536 / 4096): + sys.stderr.write("%s does not have the numeric type '%d'!\n" \ + % (path, force_dev_type)) return False + ## if root is the (real) user, then it is ok + if os.getuid() == 0: + return True ## is the path owned by us? if os.stat(path)[4] == os.getuid(): return True diff --git a/intl/ur/cryptobox-server.po b/intl/ur/cryptobox-server.po index aa48e9b..83f0a4b 100644 --- a/intl/ur/cryptobox-server.po +++ b/intl/ur/cryptobox-server.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Title.Top diff --git a/plugins/date/intl/ur/cryptobox-server-feature-date.po b/plugins/date/intl/ur/cryptobox-server-feature-date.po index 81d9d70..1add937 100644 --- a/plugins/date/intl/ur/cryptobox-server-feature-date.po +++ b/plugins/date/intl/ur/cryptobox-server-feature-date.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/disks/intl/ur/cryptobox-server-feature-disks.po b/plugins/disks/intl/ur/cryptobox-server-feature-disks.po index 36a0da8..018caa2 100644 --- a/plugins/disks/intl/ur/cryptobox-server-feature-disks.po +++ b/plugins/disks/intl/ur/cryptobox-server-feature-disks.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/cs/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/cs/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/cs/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/cs/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/da/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/da/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/da/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/da/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/de/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/de/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/de/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/de/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/es/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/es/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/es/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/es/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/fi/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/fi/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/fi/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/fi/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/fr/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/fr/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/fr/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/fr/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/hu/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/hu/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/hu/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/hu/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/it/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/it/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/it/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/it/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/ja/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/ja/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/ja/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/ja/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/nl/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/nl/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/nl/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/nl/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/pl/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/pl/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/pl/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/pl/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/pt/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/pt/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/pt/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/pt/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/ru/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/ru/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/ru/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/ru/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/sv/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/sv/cryptobox-server-feature-encrypted_webinterface.po index 2f46fd0..2548a63 100644 --- a/plugins/encrypted_webinterface/intl/sv/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/sv/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/encrypted_webinterface/intl/ur/cryptobox-server-feature-encrypted_webinterface.po b/plugins/encrypted_webinterface/intl/ur/cryptobox-server-feature-encrypted_webinterface.po index 2f1019a..d41d846 100644 --- a/plugins/encrypted_webinterface/intl/ur/cryptobox-server-feature-encrypted_webinterface.po +++ b/plugins/encrypted_webinterface/intl/ur/cryptobox-server-feature-encrypted_webinterface.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/help/intl/ur/cryptobox-server-feature-help.po b/plugins/help/intl/ur/cryptobox-server-feature-help.po index 258fbcf..953ee2d 100644 --- a/plugins/help/intl/ur/cryptobox-server-feature-help.po +++ b/plugins/help/intl/ur/cryptobox-server-feature-help.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/language_selection/intl/ur/cryptobox-server-feature-language_selection.po b/plugins/language_selection/intl/ur/cryptobox-server-feature-language_selection.po index dc847b8..feab6b8 100644 --- a/plugins/language_selection/intl/ur/cryptobox-server-feature-language_selection.po +++ b/plugins/language_selection/intl/ur/cryptobox-server-feature-language_selection.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/logs/intl/ur/cryptobox-server-feature-logs.po b/plugins/logs/intl/ur/cryptobox-server-feature-logs.po index 4555c24..2e27e81 100644 --- a/plugins/logs/intl/ur/cryptobox-server-feature-logs.po +++ b/plugins/logs/intl/ur/cryptobox-server-feature-logs.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/network/intl/ur/cryptobox-server-feature-network.po b/plugins/network/intl/ur/cryptobox-server-feature-network.po index 47af709..b07b614 100644 --- a/plugins/network/intl/ur/cryptobox-server-feature-network.po +++ b/plugins/network/intl/ur/cryptobox-server-feature-network.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/partition/intl/ur/cryptobox-server-feature-partition.po b/plugins/partition/intl/ur/cryptobox-server-feature-partition.po index caba175..2e43001 100644 --- a/plugins/partition/intl/ur/cryptobox-server-feature-partition.po +++ b/plugins/partition/intl/ur/cryptobox-server-feature-partition.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/plugin_manager/intl/ur/cryptobox-server-feature-plugin_manager.po b/plugins/plugin_manager/intl/ur/cryptobox-server-feature-plugin_manager.po index 2280e5d..3b194b4 100644 --- a/plugins/plugin_manager/intl/ur/cryptobox-server-feature-plugin_manager.po +++ b/plugins/plugin_manager/intl/ur/cryptobox-server-feature-plugin_manager.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/shutdown/intl/ur/cryptobox-server-feature-shutdown.po b/plugins/shutdown/intl/ur/cryptobox-server-feature-shutdown.po index f1b8d57..f369b8f 100644 --- a/plugins/shutdown/intl/ur/cryptobox-server-feature-shutdown.po +++ b/plugins/shutdown/intl/ur/cryptobox-server-feature-shutdown.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/system_preferences/intl/ur/cryptobox-server-feature-system_preferences.po b/plugins/system_preferences/intl/ur/cryptobox-server-feature-system_preferences.po index 318add8..1b5d80b 100644 --- a/plugins/system_preferences/intl/ur/cryptobox-server-feature-system_preferences.po +++ b/plugins/system_preferences/intl/ur/cryptobox-server-feature-system_preferences.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/user_manager/intl/ur/cryptobox-server-feature-user_manager.po b/plugins/user_manager/intl/ur/cryptobox-server-feature-user_manager.po index 7489bc7..35e05f6 100644 --- a/plugins/user_manager/intl/ur/cryptobox-server-feature-user_manager.po +++ b/plugins/user_manager/intl/ur/cryptobox-server-feature-user_manager.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/volume_automount/intl/ur/cryptobox-server-feature-volume_automount.po b/plugins/volume_automount/intl/ur/cryptobox-server-feature-volume_automount.po index 1ac95e2..fc72ba5 100644 --- a/plugins/volume_automount/intl/ur/cryptobox-server-feature-volume_automount.po +++ b/plugins/volume_automount/intl/ur/cryptobox-server-feature-volume_automount.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/volume_chpasswd/intl/ur/cryptobox-server-feature-volume_chpasswd.po b/plugins/volume_chpasswd/intl/ur/cryptobox-server-feature-volume_chpasswd.po index f9b7505..e3f1910 100644 --- a/plugins/volume_chpasswd/intl/ur/cryptobox-server-feature-volume_chpasswd.po +++ b/plugins/volume_chpasswd/intl/ur/cryptobox-server-feature-volume_chpasswd.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/volume_details/intl/ur/cryptobox-server-feature-volume_details.po b/plugins/volume_details/intl/ur/cryptobox-server-feature-volume_details.po index 955cc9e..5591c4c 100644 --- a/plugins/volume_details/intl/ur/cryptobox-server-feature-volume_details.po +++ b/plugins/volume_details/intl/ur/cryptobox-server-feature-volume_details.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/volume_format_fs/intl/ur/cryptobox-server-feature-volume_format_fs.po b/plugins/volume_format_fs/intl/ur/cryptobox-server-feature-volume_format_fs.po index 1cdfba3..e7a8e85 100644 --- a/plugins/volume_format_fs/intl/ur/cryptobox-server-feature-volume_format_fs.po +++ b/plugins/volume_format_fs/intl/ur/cryptobox-server-feature-volume_format_fs.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/volume_mount/intl/ur/cryptobox-server-feature-volume_mount.po b/plugins/volume_mount/intl/ur/cryptobox-server-feature-volume_mount.po index 538f104..8eb71ea 100644 --- a/plugins/volume_mount/intl/ur/cryptobox-server-feature-volume_mount.po +++ b/plugins/volume_mount/intl/ur/cryptobox-server-feature-volume_mount.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/volume_props/intl/ur/cryptobox-server-feature-volume_props.po b/plugins/volume_props/intl/ur/cryptobox-server-feature-volume_props.po index 20503b1..378364b 100644 --- a/plugins/volume_props/intl/ur/cryptobox-server-feature-volume_props.po +++ b/plugins/volume_props/intl/ur/cryptobox-server-feature-volume_props.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/plugins/volume_rename/intl/ur/cryptobox-server-feature-volume_rename.po b/plugins/volume_rename/intl/ur/cryptobox-server-feature-volume_rename.po index f297482..a699d58 100644 --- a/plugins/volume_rename/intl/ur/cryptobox-server-feature-volume_rename.po +++ b/plugins/volume_rename/intl/ur/cryptobox-server-feature-volume_rename.po @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Translate Toolkit 0.10.1\n" #: Name diff --git a/src/cryptobox/core/settings.py b/src/cryptobox/core/settings.py index d1dc007..f4fff91 100644 --- a/src/cryptobox/core/settings.py +++ b/src/cryptobox/core/settings.py @@ -116,7 +116,11 @@ class CryptoBoxSettings: misc_conf_file = self.get_misc_config_filename(name) misc_conf_dir = os.path.dirname(misc_conf_file) if not os.path.isdir(misc_conf_dir): - os.mkdir(misc_conf_dir) + try: + os.mkdir(misc_conf_dir) + except OSError, err_msg: + ## the caller expects only IOError + raise IOError, err_msg cfile = open(misc_conf_file, "w") try: cfile.write(content)