quot.c (d8ba45e21358ccd9c50991e62cf863bc19699756) quot.c (fb14e73cb4062d7272ce6183d748adedd868906b)
1/*-
2 * SPDX-License-Identifier: BSD-4-Clause
3 *
4 * Copyright (C) 1991, 1994 Wolfgang Solfrank.
5 * Copyright (C) 1991, 1994 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 536 unchanged lines hidden (view full) ---

545 get_inode(-1, NULL, 0); /* flush cache */
546 inituser();
547 initfsizes();
548 if ((fd = open(name,0)) < 0) {
549 warn("%s", name);
550 close(fd);
551 return;
552 }
1/*-
2 * SPDX-License-Identifier: BSD-4-Clause
3 *
4 * Copyright (C) 1991, 1994 Wolfgang Solfrank.
5 * Copyright (C) 1991, 1994 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 536 unchanged lines hidden (view full) ---

545 get_inode(-1, NULL, 0); /* flush cache */
546 inituser();
547 initfsizes();
548 if ((fd = open(name,0)) < 0) {
549 warn("%s", name);
550 close(fd);
551 return;
552 }
553 switch (sbget(fd, &fs, -1)) {
553 switch (sbget(fd, &fs, STDSB)) {
554 case 0:
555 break;
556 case ENOENT:
557 warn("Cannot find file system superblock");
558 close(fd);
559 return;
560 default:
561 warn("Unable to read file system superblock");

--- 70 unchanged lines hidden ---
554 case 0:
555 break;
556 case ENOENT:
557 warn("Cannot find file system superblock");
558 close(fd);
559 return;
560 default:
561 warn("Unable to read file system superblock");

--- 70 unchanged lines hidden ---