aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsbutil/sb_open.c')
-rw-r--r--libsbutil/sb_open.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/libsbutil/sb_open.c b/libsbutil/sb_open.c
index 1e5240f..2d9c403 100644
--- a/libsbutil/sb_open.c
+++ b/libsbutil/sb_open.c
@@ -3,26 +3,10 @@
*
* IO functions.
*
- * Copyright 1999-2006 Gentoo Foundation
- *
- *
- * 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 the
- * Free Software Foundation version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * $Header$
+ * Copyright 1999-2008 Gentoo Foundation
+ * Licensed under the GPL-2
*/
-
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
@@ -55,7 +39,7 @@ int sb_open(const char *path, int flags, mode_t mode)
do {
fd = sbio_open(path, flags, mode);
} while ((-1 == fd) && (EINTR == errno));
-
+
if ((-1 != fd) && (0 != errno))
/* Do not trigger debugging */
errno = 0;
@@ -65,4 +49,3 @@ int sb_open(const char *path, int flags, mode_t mode)
return fd;
}
-