projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sistemazione della bibliografia
[gapil.git]
/
sources
/
Flock.c
diff --git
a/sources/Flock.c
b/sources/Flock.c
index 8ea0ed5f3d320ff112336724b1549a0cb04a6a6c..55d84fefd3396aa545a13665daae3facc07b654a 100644
(file)
--- a/
sources/Flock.c
+++ b/
sources/Flock.c
@@
-26,7
+26,7
@@
*
* Usage: flock -h give all info's
*
*
* Usage: flock -h give all info's
*
- * $Id: Flock.c,v 1.
2 2002/11/17 17:30:5
1 piccardi Exp $
+ * $Id: Flock.c,v 1.
3 2002/11/18 23:54:0
1 piccardi Exp $
*
*****************************************************************************/
/*
*
*****************************************************************************/
/*
@@
-111,7
+111,7
@@
int main(int argc, char *argv[])
printf("You should set a read or a write lock\n");
usage();
}
printf("You should set a read or a write lock\n");
usage();
}
- fd = open(argv[optind], O_RD
WR);
/* open the file to be locked */
+ fd = open(argv[optind], O_RD
ONLY);
/* open the file to be locked */
if (fd < 0) { /* on error exit */
perror("Wrong filename");
exit(1);
if (fd < 0) { /* on error exit */
perror("Wrong filename");
exit(1);