*
* Usage: flock -h give all info's
*
- * $Id: Flock.c,v 1.2 2002/11/17 17:30:51 piccardi Exp $
+ * $Id: Flock.c,v 1.3 2002/11/18 23:54:01 piccardi Exp $
*
*****************************************************************************/
/*
printf("You should set a read or a write lock\n");
usage();
}
- fd = open(argv[optind], O_RDWR); /* open the file to be locked */
+ fd = open(argv[optind], O_RDONLY); /* open the file to be locked */
if (fd < 0) { /* on error exit */
perror("Wrong filename");
exit(1);