X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fenv%2Ffw_env_main.c;h=2b85d78864561d9414e085cfbd8081fa305112b9;hb=3765b3e7bd0f8e46914d417f29cbcb0c72b1acf7;hp=c855f4c17eb82767a67719ec4314e261bede3a6a;hpb=cae4a8a2a81ca6cd16d5de1b55d47e315cbff05a;p=platform%2Fkernel%2Fu-boot.git diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index c855f4c..2b85d78 100644 --- a/tools/env/fw_env_main.c +++ b/tools/env/fw_env_main.c @@ -2,23 +2,7 @@ * (C) Copyright 2000-2008 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * - * See file CREDITS for list of people who contributed to this - * project. - * - * 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; either version 2 of - * the License, or (at your option) any later version. - * - * 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., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -94,7 +78,7 @@ int main(int argc, char *argv[]) int lockfd = -1; int retval = EXIT_SUCCESS; - lockfd = open(lockname, O_WRONLY | O_CREAT | O_TRUNC); + lockfd = open(lockname, O_WRONLY | O_CREAT | O_TRUNC, 0666); if (-1 == lockfd) { fprintf(stderr, "Error opening lock file %s\n", lockname); return EXIT_FAILURE;