diff mbox series

[nfs-utils,1/1] mount: Fix return 0 from void function

Message ID 20191122162528.18199-1-petr.vorel@gmail.com (mailing list archive)
State Accepted
Headers show
Series [nfs-utils,1/1] mount: Fix return 0 from void function | expand

Commit Message

Petr Vorel Nov. 22, 2019, 4:25 p.m. UTC
Fixes: d5e30346 ("mount: Do not overwrite /etc/mtab if it's symlink")

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Hi Steve,

sorry for introducing a regression.

Kind regards,
Petr

 utils/mount/mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Dickson Nov. 22, 2019, 6:09 p.m. UTC | #1
On 11/22/19 11:25 AM, Petr Vorel wrote:
> Fixes: d5e30346 ("mount: Do not overwrite /etc/mtab if it's symlink")
> 
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> Hi Steve,
> 
> sorry for introducing a regression.
No biggie... I should have caught it and I would think the 
compiler should say something... Throw a warning or something.

Committed (tag: nfs-utils-2-4-3-rc2)

steved.

> 
> Kind regards,
> Petr
> 
>  utils/mount/mount.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/mount/mount.c b/utils/mount/mount.c
> index 92a0dfe4..2be3dc2f 100644
> --- a/utils/mount/mount.c
> +++ b/utils/mount/mount.c
> @@ -208,7 +208,7 @@ create_mtab (void) {
>  	   that would create a file /proc/mounts in case the proc filesystem
>  	   is not mounted, and the fchmod below would also fail. */
>  	if (mtab_is_a_symlink()) {
> -		return EX_SUCCESS;
> +		return;
>  	}
>  
>  	lock_mtab();
>
diff mbox series

Patch

diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index 92a0dfe4..2be3dc2f 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -208,7 +208,7 @@  create_mtab (void) {
 	   that would create a file /proc/mounts in case the proc filesystem
 	   is not mounted, and the fchmod below would also fail. */
 	if (mtab_is_a_symlink()) {
-		return EX_SUCCESS;
+		return;
 	}
 
 	lock_mtab();