Blame SOURCES/shadow-4.1.5.1-move-home.patch

fa2969
diff -up shadow-4.1.5.1/src/usermod.c.move-home shadow-4.1.5.1/src/usermod.c
fa2969
--- shadow-4.1.5.1/src/usermod.c.move-home	2014-08-29 13:31:38.000000000 +0200
fa2969
+++ shadow-4.1.5.1/src/usermod.c	2014-08-29 14:14:13.860671177 +0200
fa2969
@@ -1571,6 +1571,11 @@ static void move_home (void)
fa2969
 			         Prog, user_home, user_newhome);
fa2969
 			fail_exit (E_HOMEDIR);
fa2969
 		}
fa2969
+	} else {
fa2969
+		fprintf (stderr,
fa2969
+		         _("%s: The previous home directory (%s) does "
fa2969
+		           "not exist or is inaccessible. Move cannot be completed.\n"),
fa2969
+		         Prog, user_home);
fa2969
 	}
fa2969
 }
fa2969