projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import upstream version 1.29
[debian/tar]
/
gnu
/
fchdir.c
diff --git
a/gnu/fchdir.c
b/gnu/fchdir.c
index a39f1177d3bd7065aa9136e28fef4109b0efa358..944d1bdf87cb199433c9abea7cf8d77d988ef384 100644
(file)
--- a/
gnu/fchdir.c
+++ b/
gnu/fchdir.c
@@
-1,7
+1,5
@@
-/* -*- buffer-read-only: t -*- vi: set ro: */
-/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
/* fchdir replacement.
/* fchdir replacement.
- Copyright (C) 2006-201
4
Free Software Foundation, Inc.
+ Copyright (C) 2006-201
5
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-21,7
+19,6
@@
/* Specification. */
#include <unistd.h>
/* Specification. */
#include <unistd.h>
-#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
@@
-31,6
+28,7
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include "assure.h"
#include "dosname.h"
#include "filenamecat.h"
#include "dosname.h"
#include "filenamecat.h"
@@
-134,7
+132,7
@@
_gl_register_fd (int fd, const char *filename)
{
struct stat statbuf;
{
struct stat statbuf;
- ass
ert
(0 <= fd);
+ ass
ure
(0 <= fd);
if (REPLACE_OPEN_DIRECTORY
|| (fstat (fd, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)))
{
if (REPLACE_OPEN_DIRECTORY
|| (fstat (fd, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)))
{
@@
-158,7
+156,7
@@
_gl_register_fd (int fd, const char *filename)
int
_gl_register_dup (int oldfd, int newfd)
{
int
_gl_register_dup (int oldfd, int newfd)
{
- ass
ert
(0 <= oldfd && 0 <= newfd && oldfd != newfd);
+ ass
ure
(0 <= oldfd && 0 <= newfd && oldfd != newfd);
if (oldfd < dirs_allocated && dirs[oldfd].name)
{
/* Duplicated a directory; must ensure newfd is allocated. */
if (oldfd < dirs_allocated && dirs[oldfd].name)
{
/* Duplicated a directory; must ensure newfd is allocated. */