[3803] in SIPB bug reports
freeze "has N other links" error-message wording
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Tue Jun 1 15:09:17 1993
Date: Tue, 1 Jun 93 15:09:01 -0400
From: "Jonathan I. Kamens" <jik@gza.com>
To: mhpower@athena.mit.edu
Cc: bug-sipb@athena.mit.edu
In-Reply-To: mhpower@Athena.MIT.EDU's message of Mon, 31 May 93 02:39:04 EDT <9305310639.AA04593@hodge>
Well, I thought your patch is longer than it needs to be, so I came up
with a shorter one. I've sent it back to the author, and compiled and
installed a new version for the DECstation (although not for the other
platforms, because it's too difficult for me to do that right now, and
because the bug is silly). The patch I sent back is appended.
jik
*** 1.1 1993/06/01 18:57:53
--- freeze.c 1993/06/01 18:59:32
***************
*** 808,815 ****
} else if (statbuf.st_nlink > 1) {
fprintf(stderr, "%s: ", ifname);
! fprintf(stderr, " has %d other links -- unchanged\n",
! statbuf.st_nlink - 1);
return exit_stat = 1;
}
}
--- 808,816 ----
} else if (statbuf.st_nlink > 1) {
fprintf(stderr, "%s: ", ifname);
! fprintf(stderr, " has %d other link%s -- unchanged\n",
! statbuf.st_nlink - 1,
! (statbuf.st_nlink == 2) ? "" : "s");
return exit_stat = 1;
}
}