summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/scp.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-30 05:11:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-30 05:11:30 +0000
commit7842c7f5dbdb242d9ec9b6f213d8b39a73c8f8ce (patch)
treed04dcb5313f5136e2dc4e0b702f49654f50d6a99 /usr.bin/ssh/scp.c
parent3014b4f4317c10906498b5d1573b5b12a772c488 (diff)
do not bother with dinosaur pacification
Diffstat (limited to 'usr.bin/ssh/scp.c')
-rw-r--r--usr.bin/ssh/scp.c38
1 files changed, 3 insertions, 35 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index ea1864b06b1..13995309e61 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -42,42 +42,18 @@ and ssh has the necessary privileges.)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scp.c,v 1.4 1999/09/30 01:21:41 aaron Exp $
+ * $Id: scp.c,v 1.5 1999/09/30 05:11:29 deraadt Exp $
*/
#include "includes.h"
-RCSID("$Id: scp.c,v 1.4 1999/09/30 01:21:41 aaron Exp $");
+RCSID("$Id: scp.c,v 1.5 1999/09/30 05:11:29 deraadt Exp $");
#include "ssh.h"
#include "xmalloc.h"
-#ifdef HAVE_UTIME_H
#include <utime.h>
-#ifdef _NEXT_SOURCE
-struct utimbuf {
- time_t actime;
- time_t modtime;
-};
-#endif /* _NEXT_SOURCE */
-#else
-struct utimbuf
-{
- long actime;
- long modtime;
-};
-#endif
#define _PATH_CP "cp"
-#ifndef STDIN_FILENO
-#define STDIN_FILENO 0
-#endif
-#ifndef STDOUT_FILENO
-#define STDOUT_FILENO 1
-#endif
-#ifndef STDERR_FILENO
-#define STDERR_FILENO 2
-#endif
-
/* For progressmeter() function. */
#define STALLTIME 5
@@ -830,20 +806,12 @@ bad: run_err("%s: %s", np, strerror(errno));
#endif
if (pflag) {
if (exists || omode != mode)
-#ifdef HAVE_FCHMOD
if (fchmod(ofd, omode))
-#else /* HAVE_FCHMOD */
- if (chmod(np, omode))
-#endif /* HAVE_FCHMOD */
run_err("%s: set mode: %s",
np, strerror(errno));
} else {
if (!exists && omode != mode)
-#ifdef HAVE_FCHMOD
if (fchmod(ofd, omode & ~mask))
-#else /* HAVE_FCHMOD */
- if (chmod(np, omode & ~mask))
-#endif /* HAVE_FCHMOD */
run_err("%s: set mode: %s",
np, strerror(errno));
}
@@ -973,7 +941,7 @@ run_err(const char *fmt, ...)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scp.c,v 1.4 1999/09/30 01:21:41 aaron Exp $
+ * $Id: scp.c,v 1.5 1999/09/30 05:11:29 deraadt Exp $
*/
char *