commit mc for openSUSE:Factory
Hello community, here is the log from the commit of package mc for openSUSE:Factory checked in at Mon Oct 12 20:57:56 CEST 2009. -------- --- GNOME/mc/mc.changes 2009-07-13 21:22:57.000000000 +0200 +++ mc/mc.changes 2009-10-11 12:31:02.000000000 +0200 @@ -1,0 +2,5 @@ +Sun Oct 11 10:16:07 UTC 2009 - mseben@novell.com + +- added mc-mkdir_mc_home.patch - create .mc home dir at startup (bnc#533262) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- mc-mkdir_mc_home.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mc.spec ++++++ --- /var/tmp/diff_new_pack.Y1Fmja/_old 2009-10-12 20:56:59.000000000 +0200 +++ /var/tmp/diff_new_pack.Y1Fmja/_new 2009-10-12 20:56:59.000000000 +0200 @@ -26,7 +26,7 @@ PreReq: permissions AutoReqProv: on Version: 4.6.2 -Release: 5 +Release: 6 Summary: Midnight Commander Source: mc-4.6.2.tar.bz2 Source1: x11_browser @@ -70,6 +70,8 @@ Patch43: mc-crash-bnc500516.patch # PATCH-FIX-UPSTREAM mc-port-number-bnc483249.patch nadvornik@suse.cz - port number in shell link - midnight-commander.org/ticket/118 Patch44: mc-port-number-bnc483249.patch +# PATCH-FIX-UPSTREAM mc-mkdir_mc_home.patch mseben@suse.cz - create .mc home dir at startup (bnc#533262) +Patch45: mc-mkdir_mc_home.patch # BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://www.ibiblio.org/mc/ @@ -133,6 +135,7 @@ %patch42 -p1 %patch43 %patch44 -p1 +%patch45 pushd po rename no nb no.* popd ++++++ mc-mkdir_mc_home.patch ++++++ --- src/main.c 2009-10-10 22:21:47.000000000 +0200 +++ src/main.c 2009-10-11 12:05:35.000000000 +0200 @@ -62,6 +62,7 @@ #include "listmode.h" #include "execute.h" #include "ext.h" /* For flush_extension_file() */ +#include "fileloc.h" /* Listbox for the command history feature */ #include "widget.h" @@ -2129,8 +2130,10 @@ int main (int argc, char *argv[]) { + struct stat s; /* Check whether we have UTF-8 locale */ char *lang = getenv("LANG"); + char *mc_dir; size_t len = 0; if ( lang ) @@ -2201,6 +2204,15 @@ init_xterm_support (); + /* create home directory */ + mc_dir = mhl_str_dir_plus_file (home_dir, MC_USERCONF_DIR); + canonicalize_pathname (mc_dir); + if ((stat (mc_dir, &s) != 0) && (errno == ENOENT) && mkdir (mc_dir, 0700) != 0) + message (D_ERROR, _("Warning"), + _("Cannot create %s directory"), mc_dir); + g_free (mc_dir); + + #ifdef HAVE_SUBSHELL_SUPPORT /* Done here to ensure that the subshell doesn't */ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de