mkuzip.c (5e3934b15a2741b2de6b217e77dc9d798d740804) | mkuzip.c (525a177c165740fc697df3de5b92e58b3b41477c) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2004-2016 Maxim Sobolev <sobomax@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 284 unchanged lines hidden (view full) --- 293 * Initialize last+1 entry with non-heap trash. If final padding is 294 * added later, it may or may not be overwritten with an offset 295 * representing the length of the final compressed block. If not, 296 * initialize to a defined value. 297 */ 298 toc[hdr.nblocks] = 0; 299 300 cfs.fdw = open(oname, (cfs.en_dedup ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT, | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2004-2016 Maxim Sobolev <sobomax@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 284 unchanged lines hidden (view full) --- 293 * Initialize last+1 entry with non-heap trash. If final padding is 294 * added later, it may or may not be overwritten with an offset 295 * representing the length of the final compressed block. If not, 296 * initialize to a defined value. 297 */ 298 toc[hdr.nblocks] = 0; 299 300 cfs.fdw = open(oname, (cfs.en_dedup ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT, |
301 S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); | 301 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); |
302 if (cfs.fdw < 0) { 303 err(1, "open(%s)", oname); 304 /* Not reached */ 305 } 306 cleanfile = oname; 307 308 /* Prepare header that we will write later when we have index ready. */ 309 iov[0].iov_base = (char *)&hdr; --- 193 unchanged lines hidden --- | 302 if (cfs.fdw < 0) { 303 err(1, "open(%s)", oname); 304 /* Not reached */ 305 } 306 cleanfile = oname; 307 308 /* Prepare header that we will write later when we have index ready. */ 309 iov[0].iov_base = (char *)&hdr; --- 193 unchanged lines hidden --- |